package com.itc.display;

import javax.microedition.lcdui.Display;
import javax.microedition.midlet.MIDlet;
import javax.microedition.midlet.MIDletStateChangeException;

import com.itc.canvas.MenuCanvas;
import com.itc.resource.LoadResource;

public class Main extends MIDlet {

	Display mDisplay;
	private MenuCanvas menuCanvas;

	public Main() {
		mDisplay = Display.getDisplay(this);
	}

	public void destroyApp(boolean unconditional)
			throws MIDletStateChangeException {
		notifyDestroyed();
	}

	protected void pauseApp() {
		// TODO Auto-generated method stub

	}

	protected void startApp() throws MIDletStateChangeException {
		new LoadResource().LoadImage();
		menuCanvas = new MenuCanvas(this);
		mDisplay.setCurrent(menuCanvas);
	}

	protected Display getDisplay() {
		return this.mDisplay.getDisplay(this);
	}
}
